ERPObj.addModule(
	"message" ,
	{
		intNumRow : 20 ,
		intCurrentPage : 1,
		strStatus : 'inbox',   //inbox , sent , compose , reply
				
		init :  function()
		{
			ERPObj.strStatus = 'inbox' ;
			ERPObj.message.checkMsg();
			
		},
			
		checkMsg : function()
		{
			$("#masterpanel").load(
				ERPObj.tplPath+"systemmsg.inbox.html?"+Math.random() , function()
				{
					//ERPObj.message.checkMsg();
					//alert('123');
				}
			);
		},
		
		sendMsg : function()
		{
		
		},
		
		composeMsg : function()
		{
			$("#masterpanel").load(
				ERPObj.tplPath+"systemmsg.compose.html" , function()
				{
					//ERPObj.message.checkMsg();
					//alert('123');
					CKEDITOR.replace( 'messagebody' );
				
					
				}
			);
		},
		
		replyMsg : function()
		{
		
		},
		
		dispose : function()
		{
			
		}
	}
);